package com.ruoyi.record.mapper;

import java.util.List;

import com.ruoyi.record.domain.RecordLeave;
import com.ruoyi.record.domain.RecordSociety;
import com.ruoyi.record.domain.RecordSocietyContent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.regexp.RE;
import org.springframework.stereotype.Repository;

/**
 * 申请记录Mapper接口
 * 
 * @author ruoyi
 * @date 2023-11-23
 */
@Repository
public interface RecordSocietyMapper extends BaseMapper<RecordSociety>
{

    /**
     * 查询申请记录列表
     * 
     * @param recordSociety 申请记录
     * @return 申请记录集合
     */
    public List<RecordSociety> selectRecordSocietyList(RecordSociety recordSociety);

    /**
     * 查询待审批申请列表
     *
     * @param recordSociety 申请记录
     * @return 申请记录集合
     */
    public List<RecordSociety> selectVerifySocietyList(RecordSociety recordSociety);

    /**
     * 查询申请记录
     *
     * @param societyId 申请记录主键
     * @return 申请记录
     */
    public RecordSociety selectRecordSocietyBySocietyId(Long societyId);


    /**
     * 批量删除申请内容
     *
     * @param societyIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRecordSocietyContentBySocietyIds(Long[] societyIds);

    /**
     * 批量新增申请内容
     * 
     * @param recordSocietyContentList 申请内容列表
     * @return 结果
     */
    public int batchRecordSocietyContent(List<RecordSocietyContent> recordSocietyContentList);


    /**
     * 通过申请记录主键删除申请内容信息
     *
     * @param societyId 申请记录ID
     * @return 结果
     */
    public int deleteRecordSocietyContentBySocietyId(Long societyId);

    /**
     * 打印查询
     *
     * @param societyId 请假记录主键
     * @return 请假记录
     */
    public RecordSociety selectRecordSocietyByPrint(Long societyId);
}
